class HelpsController < ApplicationController
  layout 'base.html'
  
  def index
    @id = params[:id]
    @seo_title = "麦吐司网-常见问题"
    @seo_keywords = '常见问题,帮助'
    @seo_description = @seo_title
  end
  
  def show
    case params[:id]
    when 'aggree'
      @seo_title = "麦吐司网-会员协议"
    when 'about_us'
      @seo_title = "麦吐司网-关于麦吐司"
    when 'copyright'
      @seo_title = "麦吐司网-版权声明"
    when 'privacy'
      @seo_title = "麦吐司网-隐私声明"
    when 'open_api'
      @seo_title = "麦吐司网-OpenApi"
    end
    @seo_keywords = @seo_title
    @seo_description = @seo_title
    render :template => "helps/#{params[:id]}.html.erb"
  end

  def authorize
    
  end
  
end
